package cn.b504.qpcr.exception;

/**
 * 仪器连接失败异常类
 *
 * @author ssc
 */
public class DeviceConnectException extends Exception {
  public DeviceConnectException() {
  }

  public DeviceConnectException(String message) {
    super(message);
  }

  public DeviceConnectException(String message, Throwable cause) {
    super(message, cause);
  }

  public DeviceConnectException(Throwable cause) {
    super(cause);
  }

  public DeviceConnectException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
    super(message, cause, enableSuppression, writableStackTrace);
  }

  public DeviceConnectException(String deviceId, String reason) {
    super("Device ID: " + deviceId + ((reason == null)
        ? ""
        : " (" + reason + ")"));
  }
}
